import * as API from '../apis/setting';
import {observable, action} from 'mobx';
import {message} from 'antd';
import {WeaTableNew, WeaForm} from 'comsMobx'
const {TableStore} = WeaTableNew;
import {WeaLocaleProvider} from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

class ModuleSetting {

  @observable status = {
    selectedKey: '1',
    showSetDialog: false,
    createOrEdit: 0, //0:新建 1：编辑
  }

  @action

  doInit = () => {
  }

  setState = (params = {}) => {
    let status = {...this.status};
    Object.keys(params).forEach(key => {
      status[key] = params[key];
    });
    this.status = status;
  }

}

const blogModuleSetting = new ModuleSetting();
export default blogModuleSetting;